package com.jzg.jcptadmin.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.jzg.jcptadmin.R;
import com.jzg.jcptadmin.base.BaseActivity;
import com.jzg.jcptadmin.data.vo.SuccessValuationData;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SubmitOutActivity extends BaseActivity implements View.OnClickListener {

    @Bind(R.id.submit)
    Button submit;
    @Bind(R.id.close_car)
    TextView closeCar;
    @Bind(R.id.sale_car)
    TextView saleCar;

    SuccessValuationData result;
    @Bind(R.id.title_content)
    TextView titleContent;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_submit_out);
        ButterKnife.bind(this);
        titleContent.setText("提交确认");

        result = (SuccessValuationData) getIntent().getExtras().get("result");
        // 建议收车价
        closeCar.setText("建议收车价：" + result.getJZGPrice().getJZGAssessmentPrice() + "万元");
        //建议售车价
        saleCar.setText("建议售车价：" + result.getJZGPrice().getJZGSalePrice() + "万元");
    }


    @OnClick({R.id.submit})
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            //返回任务列表
            case R.id.submit:
                finish();
                break;
        }
    }
}
